package com.sgb.kjwl.view.ui.adapter.business;

import android.content.Context;
import android.widget.ImageView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.business.ApprovalFlowEntity;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;
import com.swgk.core.recyclerview.adapter.PageRecycleAdapter;

import java.util.List;

/**
 * 审批流
 */
public class ApprovalFlowAdapter extends PageRecycleAdapter<ApprovalFlowEntity.ApproverBean.ApproverListBean> {

    public ApprovalFlowAdapter(Context context, List<ApprovalFlowEntity.ApproverBean.ApproverListBean> datas) {
        super(context, R.layout.item_flow, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, ApprovalFlowEntity.ApproverBean.ApproverListBean entity) {
        holder.setBinding(BR.viewModel, entity);
        ImageView imageView = holder.itemView.findViewById(R.id.iv);
        imageView.setImageResource(R.drawable.business_customer);
    }
}
